<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>書本遍歷</title>
</head>
<style>
    *{
        text-align: center;
    }
    img{
        width: 100px;
        height: 100px;
    }
</style>
<body>
<table border="1px" align="center">
    <tr>
        <td>id</td>
        <td>書名</td>
        <td>圖片</td>
        <td>描述</td>
        <td>编辑</td>
    </tr>
    <tr th:each="book:${book}">
        <td>[[${book.bookId}]]</td>
        <td>[[${book.bookName}]]</td>
        <td><img th:src="${book.bookImage}"/></td>
        <td>[[${book.described}]]</td>
        <td>
            <a th:href="@{/editLogin(bookId=${book.bookId})}">修改</a>
            <a th:href="@{/booksDeleted(bookId=${book.bookId})}">删除</a>
        </td>
    </tr>
</table>
</body>
</html>